package com.yuda.job.task;

import com.yuda.job.fegin.RemoteCheckAnswerService;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("checkAnswer")
public class CheckAnswerTask {

    @Autowired
    private RemoteCheckAnswerService remoteCheckAnswerService;

    public void check(Integer testSession, Integer subjectIndex) {

        System.out.println("定时器调用....checkAnswer " + testSession + " " + subjectIndex);
        remoteCheckAnswerService.checkAnswer(testSession, subjectIndex);
    }

    public void checkLog(Integer paperId) {
        System.out.println("定时器调用 ... 检查日志");
        remoteCheckAnswerService.checkLog(paperId);
    }
}
